package com.woniuxy.entity;

/**
 * 这个就是我们数据库userinfo对应的实体类
 */
public class UserInfo {
    //用户主键 唯一的
    int id;
    //用户名称
    String name;
    //年龄
    int age;
    //sex性别
    String sex;
    //大学名称
    String college;
    //专业的名称
    String specialty;
    //学号
    String stuid;

    public UserInfo() {
    }

    public UserInfo(String name, int age, String sex, String college, String specialty, String stuid) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.college = college;
        this.specialty = specialty;
        this.stuid = stuid;
    }

    public UserInfo(int id, String name, int age, String sex, String college, String specialty, String stuid) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.college = college;
        this.specialty = specialty;
        this.stuid = stuid;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    public String getSpecialty() {
        return specialty;
    }

    public void setSpecialty(String specialty) {
        this.specialty = specialty;
    }

    public String getStuid() {
        return stuid;
    }

    public void setStuid(String stuid) {
        this.stuid = stuid;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", college='" + college + '\'' +
                ", specialty='" + specialty + '\'' +
                ", stuid=" + stuid +
                '}';
    }
}
